]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
global: Fix a small memory leak
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 21 Sep 2016 21:24:28 +0000 (23:24 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 21 Sep 2016 21:38:42 +0000 (23:38 +0200)
src/shell-global.c

index 480b2fe4d04d35a73e0914f8d38889a7f272eae2..6dda3526ac613e3a2700b1dbec737b357d8cf35f 100644 (file)
@@ -277,6 +277,7 @@ shell_global_init (ShellGlobal *global)
                           XDisplayName (NULL));
   (void) g_mkdir_with_parents (path, 0700);
   global->runtime_state_path = g_file_new_for_path (path);
+  g_free (path);
 
   global->settings = g_settings_new ("org.gnome.shell");